﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="notification_add.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Notification.notification_add" %>

<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    <%var get_notification = from p in new TblNotificationController().FetchAll().Where(x => x.NotificationSender == int.Parse(Session["admin_id"].ToString()) && x.NotificationIsDelete == false) orderby p.NotificationDate descending select p; %>
    <%foreach (TblNotification noti in get_notification)
        { %>
    <li id="notification-<%=noti.NotificationId %>" value="<%=noti.NotificationId %>"><%=noti.NotificationTitle %></li>
    <%} %>
</body>
</html>
